package com.atguigu.mall.search.controller;

import com.atguigu.mall.search.service.MallSearchService;
import com.atguigu.mall.search.vo.SearchParam;
import com.atguigu.mall.search.vo.SearchResult;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

import javax.annotation.Resource;

@Controller
public class SearchController {

    @Resource
    private MallSearchService mallSearchService;
    @GetMapping("/list.html")
    public String listPage(SearchParam searchParam){
        SearchResult searchResult = mallSearchService.search(searchParam);
        return  "list";
    }
}
